<?php
            
namespace Admin\Model;
use Think\Model;
use Think\Upload;

/**
 * 商品规格模型
 *  
 */

class GroupPurchaseGradeLeanCloudModel extends SyncModel{
    
    protected $tableName = 'grouppurchase_grade'; 
    
    //leancloud表名
    protected $leancloudName = "GroupPurchaseGrade";
    
    //配置字段
    protected $fields = array(
        'objectId', 
        'gpId',
        'proId', 
        'price', 
        'saleCnt',
        'createdAt',
        'updatedAt',
        'syncStatus', 
        'status',
        '_type'=>array(
            'objectId'=>'int', 
            'gpId'=>'int',
            'proId'=>'int', 
            'price'=>'float',
            'saleCnt'=>'int',
            'createdAt'=>'int',
            'updatedAt'=>'int',
            'syncStatus'=>'int', 
            'status'=>'int'
        )
    );
    
    
    //leancloud 字段类型
    protected $leancloudelds = array(
        "objectId"=>"String",
        "gpId"=>"Number",
        "proId"=>"Number",
        "price"=>"Number",
        "saleCnt"=>"Number",
        'createdAt'=>'Date',
        'updatedAt'=>'Date',
        'syncStatus'=>'Number', 
        'status'=>'Number'
    );
}
